<?php

class Tag_Tabnav{
	
	public static $XSL;
}

Tag_Tabnav::$XSL = <<<EOD
<xsl:template match="i:tab-nav">
<xsl:variable name="key" select="@label"/>
<div class="part-title-class" id="{@id}">
	<xsl:if test="\$key">
	<h1><xsl:value-of select="@label"/></h1>
	</xsl:if>
	<ul class="part-title-nav">
	<xsl:for-each select="i:tab-nav-item">
		<li>
			<xsl:if test="@selected='true'">
				<xsl:attribute name="class">
					 <xsl:value-of select="'selected'" />
				</xsl:attribute>
			</xsl:if>
			<xsl:if test="/i:tab-nav/@dynamic='true'">
				<xsl:attribute name="onclick">Tabnav.select(this, &quot;<xsl:value-of select="/i:tab-nav/@id" />&quot;);</xsl:attribute>
			</xsl:if>
			<a href="{@url}"><span>
			<xsl:if test="@icon">
			<em class="{@icon}"></em>
			</xsl:if>
			<xsl:value-of select="@label"/>
			<xsl:if test="@post-icon">
			<ins class="{@post-icon}"></ins>
			</xsl:if>
			</span>
			</a>
		</li>
	</xsl:for-each>
	</ul>
	<div class="part-title-right">
	<xsl:for-each select="i:tab-nav-more">
		<span class="common-icon {@icon}"></span><span class="common-icon-text"><a href="{@url}" class="{@link-class}"><xsl:value-of select="@label"/></a></span>
	</xsl:for-each>
	</div>
</div>
</xsl:template>
EOD;
